package service

import (
	"seat-service/model"
	"seat-service/model/dto"
)

type Message interface {
	CreateAnnouncement(announcement model.Message) error                                //管理员新增通告
	QueryAnnouncement(p dto.PageParam) (count int64, result []model.Message, err error) //管理员查询通告
	UpdateAnnouncement(newAnnouncement model.Message) error                             //管理员修改通告
	QueryAnnouncementById(id int) (result model.Message, err error)                     //根据id查询通告
	DeleteAnnouncementByIds(ids dto.DeleteAnnouncementIds) error                        //管理员删除通告
	SelectAllMessage() (result []model.Message, err error)                              //学生查看所有通告信息
	SelectUserMessage() (result []model.Message, err error)                             //学生查看所有用户须知
}
